package ch7;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class TEst1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();


        for (int a = 1; a <= n; a++) {
            for (int b = 1; b <= n - a; b++) {
                {

                    System.out.print(" ");
                }


                for (int c = 1; c <= (2 * a - 1); c++) {
                    if (a == 1 || a == n || c == 1 || c == 2 * a - 1) {
                        System.out.print("*");
                    } else {
                        System.out.print(" ");


                    }

                }
                System.out.println();
            }


        }
    }
}



